package com.geo.result.component;

import com.geo.result.service.TestReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class TestReportTask {
    @Autowired
    TestReportService testReportService;


    @Async
    public void executeAsyncTask() throws InterruptedException{
        testReportService.writeReportToDB();
        System.out.println("结束运行executeAsyncTask");
    }
}
